<%@ page language="java" import="java.util.*,com.hs.core.utils.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<base href="<%=basePath%>">
<title></title>
<script src="<%=basePath %>app/javascripts/jquery-1.5.1.js"></script>
<script src="<%=basePath %>app/javascripts/layout.js"></script>
<script src="<%=basePath %>common/javascript/common.js"></script>
<script src='<%=basePath%>dwr/engine.js'></script>
<script src='<%=basePath%>dwr/util.js'></script> 
<script src='<%=basePath%>dwr/interface/authdwr.js'></script> 
<script src='<%=basePath%>common/uploadify/jquery-1.5.1.min.js'></script> 
<script src='<%=basePath%>common/uploadify/swfobject.js'></script>
<script src='<%=basePath%>common/uploadify/jquery.uploadify.v2.1.4.min.js'></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>common/uploadify/uploadify.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath %>app/css/layout.css" />
<style>.tac{text-align:center}</style>
<script>
$(document).ready(function() {
  $('#file_upload').uploadify({
    'uploader'  : '<%=basePath%>common/uploadify/uploadify.swf',
    'script'    : '<%=basePath %>data/uploadfile.do',
    'cancelImg' : '<%=basePath%>common/uploadify/cancel.png',
    'folder'    : '<%=basePath%>upload',
    'queueID'   : 'fileQueue',
    'auto'      : false,
    'muti'     : false,
    'multi': false, 
	'buttonImg' : '',  
	'fileExt'        : '*.xls',   
    'fileDesc'       : 'excel文件(*.xls)', 
    onComplete: function (event, queueID, fileObj, response, data) {
   		$('#result').html(data.filesUploaded +'个图片上传成功');  
   　},
   	onError: function(event, queueID, fileObj) {      

    }
    
  });
});
</script>
</head>
<body>
<div class="cont">
    <dl class="deta_list">
    	<dt><p>题录数据导入</p> <p>题录数据管理</p><span></span></dt>
        <dd>
         	<form action="" method="get">
              <div id="fileQueue" > 
              <input id="file_upload" name="file_upload" type="file" />	&nbsp;&nbsp;
              <a href="javascript:jQuery('#file_upload').uploadifyUpload()" style="font-size:20px;">开始上传</a><span style="font-size:20px;">|</span>
			  <a href="javascript:jQuery('#file_upload').uploadifyClearQueue()" style="font-size:20px;">取消上传</a>
			  <span id="result" style="font-size: 20px;color: red"></span>  
              </div>
                <table border="0" cellspacing="0" cellpadding="0" class="list">
                  <tr>
                    <th width="4%">全选</th>
                    <th width="4%">序号</th>
                    <th width="45%">标题</th>
                    <th width="8%">年份</th>
                    <th width="39%">描述</th>
                  </tr>
                  <tr>
                    <td>
                      <input type="checkbox" name="checkbox" id="checkbox" />            </td>
                    <td>1</td>
                    <td>标题标题标题</td>
                    <td>2011-10-10</td>
                    <td>描述描述</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox2" id="checkbox2" /></td>
                    <td>2</td>
                    <td>标题标题标题</td>
                    <td>2011-10-10</td>
                    <td>描述描述描述描述描述</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox3" id="checkbox3" /></td>
                    <td>3</td>
                    <td>标题标题标题</td>
                    <td>2011-10-10</td>
                    <td>描述描述</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox4" id="checkbox4" /></td>
                    <td>4</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox5" id="checkbox5" /></td>
                    <td>5</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox6" id="checkbox6" /></td>
                    <td>6</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox7" id="checkbox7" /></td>
                    <td>7</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox8" id="checkbox8" /></td>
                    <td>8</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox9" id="checkbox9" /></td>
                    <td>9</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input type="checkbox" name="checkbox10" id="checkbox10" /></td>
                    <td>10</td>
                    <td>&nbsp;</td>
                    <td>2011-10-10</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                   <td colspan=8>
          					 <a href="">首页</a>│<a href="">上一页</a>│<a href="">下一页</a>│<a href="">尾页</a>
          			</td>
         		  </tr>
                </table>
        	</form>
        	
        </dd>
        <dd>
        	
            <div class="deta_proce">
            	<ul>
                	<li>方剂</li>
                    <li>穴位</li>
                    <li>疾病</li>
                </ul>
                <div>
                	<table border="0" cellspacing="0" cellpadding="0">
                      <caption>方剂信息</caption>
                      <tr>
                        <td width="17%">方名</td>
                        <td width="83%">
                          <input name="textfield" type="text" id="textfield" style="width:60%"/>                        </td>
                      </tr>
                      <tr>
                        <td>编号</td>
                        <td><input name="textfield" type="text" id="textfield" style="width:60%"/></td>
                      </tr>
                      <tr>
                        <td>出处</td>
                        <td><input name="textfield" type="text" id="textfield" style="width:60%"/></td>
                      </tr>
                      <tr>
                        <td>备注</td>
                        <td>
                            <textarea name="textarea" id="textarea" cols="45" rows="3"></textarea>                        </td>
                      </tr>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0">
                      <caption>方剂信息</caption>
                      <tr>
                        <td width="17%">方名</td>
                        <td width="83%">
                          <input name="textfield" type="text" id="textfield" style="width:60%"/>                        </td>
                      </tr>
                      <tr>
                        <td>编号</td>
                        <td><input name="textfield" type="text" id="textfield" style="width:60%"/></td>
                      </tr>
                      <tr>
                        <td>出处</td>
                        <td><input name="textfield" type="text" id="textfield" style="width:60%"/></td>
                      </tr>
                      <tr>
                        <td>备注</td>
                        <td>
                            <textarea name="textarea" id="textarea" cols="45" rows="3"></textarea>                        </td>
                      </tr>
                    </table>
                    <input name="" type="button" value="保存" class="but_2"/><input name="" type="button" value="下一条" class="but_3"/>
                </div>
            </div>
        </dd>
    </dl>
</div>
</body>
</html>
